﻿// =================================================================== 
// 项目说明
//====================================================================
// lsc @Copy Right 2019
// 文件： HotMobileEntity.cs
// 项目名称：斑马车务
// 创建时间：2019-10-11
// 负责人：lsc
// ===================================================================

using System;
using Dapper.Extensions;
using YouWei.Infrastructure.Enums;

namespace YouWei.Infrastructure.Entity
{
	/// <summary>
	///热门电话数据实体  
	/// </summary>
    [PrimaryKey("MobileID")]
	public class HotMobile
	{
		///<summary>
		///热门电话
		///</summary>
		public HotMobile()
		{
		}	
    
		
		///<summary>
		///
		///</summary>
        [Column("Mobile","")]
        public string Mobile { get; set; }

		///<summary>
		///
		///</summary>
        [Column("MobileLogo","")]
        public string MobileLogo { get; set; }

		///<summary>
		///
		///</summary>
        [Column("MobileSort","")]
        public int MobileSort { get; set; }

		///<summary>
		///
		///</summary>
        [Column("MobileDesc","")]
        public string MobileDesc { get; set; }

		///<summary>
		///
		///</summary>
        [Column("CreateDate","")]
        public DateTime CreateDate { get; set; }

		///<summary>
		///
		///</summary>
        [Column("CreateUserID","")]
        public int CreateUserID { get; set; }

		///<summary>
		///
		///</summary>
        [Column("UpdateDate","")]
        public DateTime UpdateDate { get; set; }

		///<summary>
		///
		///</summary>
        [Column("UpdateUserID","")]
        public int UpdateUserID { get; set; }

		///<summary>
		///
		///</summary>
        [Column("IsActive","")]
        public int IsActive { get; set; }

		///<summary>
		///
		///</summary>
        [Column("MobileID","")]
        public int MobileID { get; set; }

        ///<summary>
        ///
        ///</summary>
        [Column("MobileGroup", "")]
        public int MobileGroup { get; set; }
        
        [ResultColumn("MobileGroupName","")]
        public string MobileGroupName {
            get {
                return Utility.EnumHelper.GetEnumDesc(typeof(MobileGroupEnum), MobileGroup);
            }
        }

        [ResultColumn("MobileLogoUrl", "")]
        public string MobileLogoUrl
        {
            get;set;
        }
    }
}